package org.spring.nacos.trigger.http;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RefreshScope
@RestController
public class TestController {
    @Value("${mysql.password}")
    private String password;

    @GetMapping("mysql")
    public String mysql() {
        return password;
    }
}
